﻿using System;
using YaAppoint.Appointments.Schedules;

namespace YaAppoint
{
    /// <summary>
    /// 预约时段
    /// </summary>
    public class TimeInterval : CommonEntity
    {
        /// <summary>
        /// 开始时间
        /// </summary>
        public virtual TimeSpan StartTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public virtual TimeSpan EndTime { get; set; }

        /// <summary>
        /// 排班表
        /// </summary>
        public virtual Schedule Schedule { get; set; }

        /// <summary>
        /// 排班表Id
        /// </summary>
        public virtual Guid ScheduleId { get; set; }

        /// <summary>
        /// 最早可预约
        /// </summary>
        public virtual int Earliest { get; set; } 
    }
}
